package com.riant.dayo2.demo3;

/**
 * @Classname Test1
 * @Description TODO
 * @Date 2021/2/27 9:59
 * @Created by 张斌
 */
public class Test1 {
    public static void main(String[] args) {
        /**
         * java.lang.ArrayStoreException:将子类引用赋值给父类，会产生数组存储异常
         * */
        VipUser[] vipUsers=new VipUser[3];
        User3[] user3s=vipUsers;
        user3s[0]=new User3();

    }
}
